import requests

#发送请求参数据
url = "http://kdtx-test.itheima.net/api/login"
header_data = {
    "Content-Type": "application/json"
}
login_data = {
    "username": "admin",
    "password": "HM_2023_test",
    "code":2,
    "uuid":"0489818763d44074a15f59cfc30a3bb5"
}
response = requests.post(url=url,headers=header_data,json=login_data)

#查看响应
print(response.status_code)
print(response.json())